/**  
 * 
 */
package com.astrocsr.domain.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="TBL_PERMISSION")
public class TblPermission {

	/** Define feilds
	 * 
	 */
	@Id
	@Column(name="MODULE_CODE")
	private String moduleCode;
	@Column(name="GROUP_CODE")
	private String groupCode;
	@Column(name="MER_NAME")
	private String merName;
	@Column(name="READ_FLAG")
	private String readFlag;
	@Column(name="UPDATE_FLAG")
	private String updateFlag;
	@Column(name="WRITE_FLAG")
	private String writeFlag;
	@Column(name="CREATED_BY")
	private String createdBy;
	@Column(name="CREATED_DATE")
	private Date createdDate;
	
	@Transient
	private String moduleName;
	
	public TblPermission() {
		// TODO Auto-generated constructor stub
	}


	/**
	 * @param roleCode
	 */
	public TblPermission(String groupCode) {
		super();
		this.groupCode = groupCode;
	}

	public TblPermission(String moduleCode, String groupCode, String moduleName) {
		super();
		this.moduleCode = moduleCode;
		this.groupCode = groupCode;
		this.moduleName = moduleName;
	}

	/**
	 * @return the merName
	 */
	public String getMerName() {
		return merName;
	}


	/**
	 * @param merName the merName to set
	 */
	public void setMerName(String merName) {
		this.merName = merName;
	}

	/**
	 * @return the moduleCode
	 */
	public String getModuleCode() {
		return moduleCode;
	}


	/**
	 * @param moduleCode the moduleCode to set
	 */
	public void setModuleCode(String moduleCode) {
		this.moduleCode = moduleCode;
	}


	/**
	 * @return the readFlag
	 */
	public String getReadFlag() {
		return readFlag;
	}


	/**
	 * @param readFlag the readFlag to set
	 */
	public void setReadFlag(String readFlag) {
		this.readFlag = readFlag;
	}


	/**
	 * @return the updateFlag
	 */
	public String getUpdateFlag() {
		return updateFlag;
	}


	/**
	 * @param updateFlag the updateFlag to set
	 */
	public void setUpdateFlag(String updateFlag) {
		this.updateFlag = updateFlag;
	}


	/**
	 * @return the writeFlag
	 */
	public String getWriteFlag() {
		return writeFlag;
	}


	/**
	 * @param writeFlag the writeFlag to set
	 */
	public void setWriteFlag(String writeFlag) {
		this.writeFlag = writeFlag;
	}


	/**
	 * @return the createdBy
	 */
	public String getCreatedBy() {
		return createdBy;
	}


	/**
	 * @param createdBy the createdBy to set
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


	/**
	 * @return the createdDate
	 */
	public Date getCreatedDate() {
		return createdDate;
	}


	/**
	 * @param createdDate the createdDate to set
	 */
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}


	public String getModuleName() {
		return moduleName;
	}


	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}


	public String getGroupCode() {
		return groupCode;
	}


	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

}
